package com.kang.c0c.test;

import java.util.HashSet;
import java.util.Iterator;


public class Try {
	public static void main(String args[]){
		HashSet<Integer> t1 = new HashSet<Integer>();
		t1.add(1);
		t1.add(2);
		t1.add(3);
		t1.add(4);
		
		
		Iterator<Integer> i1 = t1.iterator();
		
		
		while(i1.hasNext()){
			Integer it1 = i1.next();
			Iterator<Integer> i2 = t1.iterator();
			while(i2.hasNext()){
				Integer it2 = i2.next();
				System.out.println(it1 + "---" + it2);
			}
		}
	}
}
